-- GENERATED SPELL FOR [Quetz'lun's Spirit] --


function spell0_28030(pUnit, Event) --@Quetz\'lun\'s Judgment,Self--
pUnit:FullCastSpellOnTarget(53096,pUnit)
pUnit:RegisterEvent('Sorts_28030', 2000, 1)
end

function Sorts_28030(pUnit, Event)
local choix_sorts_28030 = math.random(0, 0)
if choix_sorts_28030 == 0 then
pUnit:RegisterEvent('spell0_28030', 1, 1)
end
end

function mob28030_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28030', math.random(1500, 3000), 1)
end

function mob28030_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28030_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28030_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28030, 1, 'mob28030_Action')
RegisterUnitEvent(28030, 2, 'mob28030_Leave')
RegisterUnitEvent(28030, 3, 'mob28030_Kill')
RegisterUnitEvent(28030, 4, 'mob28030_Die')
